/**
 * 作者：陈文斌 on 2019/1/26.
 * 邮箱：chen_wennbin@163.com
 * 版本：v1.0
 */

import 'package:json_annotation/json_annotation.dart';
import 'package:crm/model/ClientManager/client_info_model.dart';
import 'package:crm/model/PainPoint/pain_point_image_model.dart';

part 'pain_point_model.g.dart';

@JsonSerializable()
class PainPointModel extends Object with _$PainPointModelSerializerMixin {
  String customerId;
  ClientInfoModel customer;
  String details;
  String id;
  List<PainPointImageModel> images;
  String painPointCompanyId;
  String painPointCreateEmployeeId;
  String painPointCreateTimeUtc;
  List<PainPointImageModel> painPointImages;
  String painPointModifyEmployeeId;
  String painPointModifyTimeUtc;
  String recorder;
  String recordtime;

  PainPointModel(
    this.customerId,
    this.customer,
    this.details,
    this.id,
    this.images,
    this.painPointCompanyId,
    this.painPointCreateEmployeeId,
    this.painPointCreateTimeUtc,
    this.painPointImages,
    this.painPointModifyEmployeeId,
    this.painPointModifyTimeUtc,
    this.recorder,
    this.recordtime,
  );

  @override
  factory PainPointModel.fromJson(Map<String, dynamic> json) =>
      _$PainPointModelFromJson(json);
}
